//
//  DropMenuView.h
//  DebugDemo
//
//  Created by XFB on 2019/1/19.
//  Copyright © 2019年 ZhouCheng. All rights reserved.
//

#import <UIKit/UIKit.h>


@class DropMenuView;
@protocol DropMenuDataSource <NSObject>

/// 下拉菜单数据源协议
- (NSInteger)numberOfColumsInMemu:(DropMenuView *)dropMenuView;

/// 下拉菜单每列外观按钮
- (UIButton *)dropMenuView:(DropMenuView *)dropMenuView buttonForColumAtIndex:(NSInteger)index;

/// 下拉菜单每列对应的控制器
- (UIViewController *)dropMenuView:(DropMenuView *)dropMenuView viewControllerForColumAtIndex:(NSInteger)index;

/// 下拉菜单每列对应的高度
- (CGFloat)drppMenuView:(DropMenuView *)dropMenuView heightForColumAtIndex:(NSInteger)index;

@end

NS_ASSUME_NONNULL_BEGIN

@interface DropMenuView : UIView

@property (nonatomic, weak) id <DropMenuDataSource> dataSource;

/// 分割线颜色
@property (nonatomic, strong) UIColor *separateLineViewColor;
/// 分割线距离顶部间距 默认10
@property (nonatomic, assign) NSInteger separateLineViewTopMargin;
/// 蒙版颜色
@property (nonatomic, strong) UIColor *coverColor;

- (void)reloadView;

@end

NS_ASSUME_NONNULL_END
